(function (root) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(root); // jQuery Switch
        // define(['zepto'], factory); // Zepto Switch
    } else if (typeof exports === 'object') {
        // Node/CommonJS
        root(); // jQuery Switch
        // factory(require('zepto')); // Zepto Switch
    } else {
        // Browser globals
        notice = root();
    }
}(function () {
    var notice = {};

    notice.new = function (callback) {
        $.ajax({url: "/open/oauth/notice/newNotice.action", cache: false}).done(function (data) {
            if (!data || data == "[]") {
                data = {result: false, message: "error"}
            }
            callback(data);
        });
    };

    return notice;
}));



